
import { Column, Table } from 'sequelize-typescript';
import { BaseModel } from '@/model'
import { DataTypes } from "sequelize";

@Table
export class SlidePic extends BaseModel {

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "关联Id" })
  slideId: string;

  @Column({ type: DataTypes.TEXT, allowNull: false, comment: '图片地址' })
  fileId: string;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: "图片跳转地址" })
  jumpAddress: string;

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "是否启用" })
  status: number;

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "排序" })
  sort: number;

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "显示时长" })
  showTime: number;
}
